const mongoose = require('mongoose')
const Schema = mongoose.Schema

const ProjectType = {
  title: String,
  introduction: String,
  detail: String,
  cover: String,
  updateTime: Date
}

const ProjectModel = mongoose.model('project', new Schema(ProjectType, { versionKey: false }))

module.exports = ProjectModel